//
//  ExampleVC.m
//  ZSHUDSet-master
//
//  Created by safiri on 2018/7/9.
//  Copyright © 2018年 safiri. All rights reserved.
//

#import "ExampleVC.h"
#import "UIView+XNProgressHUD.h"

@interface ExampleVC ()

@end

@implementation ExampleVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    
    [self.view.hud showWithTitle:@"fwfw"];
    
    //2
    UIView *view = [[UIView alloc] initWithFrame:CGRectMake(100, 200, 250, 100)];
    view.backgroundColor = [UIColor lightGrayColor];
    [self.view addSubview:view];

    
    
    XNProgressHUD *hudView = [[XNProgressHUD alloc] init];
    hudView.targetView = view;
    //[hudView setMaskType:(XNProgressHUDMaskTypeBlack)  hexColor:0x00000044];
    //[hudView setMaskType:(XNProgressHUDMaskTypeCustom) hexColor:0xff000044];
    hudView.position = CGPointMake(250/2, 100/2);
    hudView.titleLabel.font = [UIFont systemFontOfSize:14];
    [hudView showLoadingWithTitle:@"正在加载"];
    
    //==
    //[view.hud show];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
